package com.weir.order.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.weir.order.service.OrderService;
import com.weir.user.entity.User;

@RestController
public class OrderController {

	@Autowired
	private OrderService orderService;
	
	@RequestMapping("/getUser")
	public User getUser(Integer userId) {
		User user = orderService.get(userId);
		return user;
	}
}
